package com.lcd.ssm.web.controller;

import com.lcd.ssm.domain.Department;
import com.lcd.ssm.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * lcd  2020/4/28
 * Description:
 */
@Controller
public class DepartmentController {
    @Autowired
    private IDepartmentService departmentService;

    @RequestMapping("/department_queryForEmployee")
    @ResponseBody
    public List<Department> department_queryForEmployee(){
        return departmentService.department_queryForEmployee();
    }
}
